export const options = {
  code1: '<p><b1>options</b1> <b3>=</b3> <b1>map.</b1><b2>mapOptions</b2>;</p>',
  options1: [
    {
      name: "zoom",
      type: "Number",
      desc: "当前海图层级"
    },
    {
      name: "mouseCenter",
      type: "Array",
      desc: "当前鼠标位置：[lon, lat]"
    },
    {
      name: "center",
      type: "Array",
      desc: "当前海图中心点：：[lon, lat]"
    },
  ],
  options2: [
    {
      name: "zoomIn",
      desc: "海图层级放大一级",
      option: "Function()",
    },
    {
      name: "zoomOut",
      desc: "海图层级缩小一级",
      option: "Function()",
    },
    {
      name: "setZoom",
      desc: "海图层级缩放到指定的层级",
      option: "Function(number)",
    },
    {
      name: "moveTo",
      desc: "移动到指定的坐标和层级",
      option: "Function({ center: [lon, lat], zoom: number })",
    },
    {
      name: "getBounds",
      desc: "获取当前屏幕经纬度，第一位是右上角经纬度，第二位是左下角经纬度",
      option: "Callback([{ lon, lat }, { lon, lat }])",
    },
    {
      name: "removeLayer",
      desc: "根据图层ID，删除图层",
      option: "Function(图层ID)",
    },
    {
      name: "setLayerVisibility",
      desc: "根据图层ID，显示/隐藏图层",
      option: "Function(图层ID, Boolean)",
    },
  ],
}